﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Core.models
{
    /// <summary>
    /// 接口输出类
    /// </summary>
    public class ApiOutput
    {
        /// <summary>
        /// 接口执行结果
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 输出数据
        /// </summary>
        public object Data { get; set; }
        /// <summary>
        /// 信息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 状态码
        /// </summary>
        public HttpStatusCode Status { get; set; }
    }

    /// <summary>
    /// 接口扩展输出类
    /// </summary>
    public class ApiOutputExt : ApiOutput
    {
        /// <summary>
        /// 异常信息
        /// </summary>
        public Exception Exception { get; set; }
    }
}
